package com.geepi.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class User {
	private int userId;
	private String userName;
	private  int age;
	private int gender;
	private  double height;
	private String password;
	private String birthday;
	
	
	//get、set方法
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getHeight() {
		return height;
	}
	public void setHeight(double height) {
		this.height = height;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm"); 
		this.birthday = sdf.format(birthday);
	}
	
 
	//方法重载
	public void setBirthday(String birthday) {
		
		this.birthday = birthday;
	}
	public int getGender() {
		return gender;
	}
	public void setGender(int gender) {
		this.gender = gender;
	}
	
	
}
